import http from './http.js'

// banner部分
// 首页轮播图
const getswiper = () =>{
  return http('/index',{method:'get'})
}

// 首页导航数据
const getnav = () =>{
	return http('/index',{method:'get'})
}

//优惠券数据
const getquan = () =>{
	return http('/coupon',{method:'get'})
}

// 拼团数据
const getpt = () =>{
return http('/group?usable=1',{method:'get'})
}
 //登录接口
const getlogin = (data) =>{
	return http ('/login',{method:'post',data})
}

// 点击查看等多 
const getmore = (params)=>{
   return http('/course/list?limit=50',{data:params})	
}

// 考试数据
const gettest = (params)=>{
	return http('/testpaper/list',{data:params})
}
// 电子书数据
const getbook = (params) =>{
	return http ('/book/list',{data:params})
}
export{getswiper,getnav,getquan,getpt,getmore,getlogin,gettest,getbook}
